import { Component } from '@angular/core';

declare var form: any;

@Component({
  templateUrl: './appbook.component.html'
})
export class AppbookComponent {
  fs: any = null;
  appDic: any = null;

  constructor() {
    this.fs = new form.FormSimpleService('appbook', {
      orderObject: { id: 0 },
      keyField: 'id',
      randomFields: ['id']
    });
    // 加载表单数据
    this.fs.loadData(true);
    this.appDic = new form.DictionaryService('p_appinfo');
  }
}
